<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="minimal-ui,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>峰购趣闻-{$webseting.web_title}</title>
    <link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/user.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/article.css"  rel="stylesheet">
</head>
<body id="body">
<!--绑定头部-->
<include file="Public/binding_head"/>
<!--绑定头部-->

<header id="header" class="u-header clearfix">
        <div class="u-hd-left f-left">
            <a href="javascript:history.go(-1);" class="J_backToPrev"><span class="u-icon-px i-hd-back"></span></a>
        </div>
        <div class="u-hd-tit"><span>峰购趣闻</span></div>
    </header>
    <div class="article-contents">
        <ul class="more_html">
            <volist name="data" id="vo">
                <li>
                    <a href="{:U('wap/Usernotice/tweet_detail',array('id'=>$vo['id']))}">
                        <div class="a-c-lf">
                            <img src="{$vo.img}" alt="" title=""
                                 style="visibility: visible;border: none;height: 80px;"/>
                        </div>
                        <div class="a-c-lr">
                            <p>{$vo.title}</p>
                            <div class="a-time">
                                <span><!--{$vo.add_time|date="Y-m-d H:i:s",###}--></span>
                            </div>
                        </div>
                    </a>
                </li>
            </volist>
        </ul>
    </div>
 <div class="b_q">
        <div class="fm-footer-copyright get_more">
            <if condition="$count gt 10 && count($data) eq 10">
                  加载更多
              <else/>  
                 无更多数据
            </if>
        </div>
    </div>
<div style="height:50px;">
   </div> 
     <!--end top-->
   <include file="Public/footer" />
    <include file="Public/wap_javascript"/>
    <script type="text/javascript">
        var binding_is_check = 0;// 重复再次弹出 1是 0否
        var binding_page = 'tweet_list';// //当前页面名称 不可重复
    </script>
    <!--绑定-->
    <include file="Public/binding_phone"/>
    <!--绑定-->
<include file="Public/share_weixin"/>
     <input type="hidden" name="p" value="2" />
    <script type="text/javascript">
   $(function(){
     $(".get_more").click(function(){
        get_more();
     });

   }); 
   function get_more(){
     var p=$("input[name='p']").val();
           $.ajax({ 
            url: "{:U('wap/usernotice/tweet_list')}",
            type:'post',
            data: {p:p},
            dataType: 'json',
            success: function(data){
//                alert(1);
//              console.log(data);
               var con=1;
              if(data){
                var option='';
                 $.each(data, function(i, value) {
                //this指向当前元素
                //i表示Array当前下标
                //value表示Array当前元素
                 option=option+'<li>'
                       +'<a href="<?php echo U('wap/Usernotice/tweet_detail'); ?>?id='+value.id+'">'
                       +'   <div class="a-c-lf">'
                       +'    <img src="'+this.img+'" alt="" title=""style = "visibility: visible;border: none;height: 80px;" / >'
                       +' </div>'
                       +' <div class="a-c-lr">'
                       +'<p>'+this.title+'</p>'
                     +'<div class="a-time">'
                  //   +'<span>'+this.add_time+'</span>'
                     +'</div></div></a></li>';
                    con++;
                 });
                 $('.more_html').append(option);
                 $("input[name='p']").val(parseInt(p)+1);
              }
              if(con<10){
                 $('.get_more').html('无更多数据');
              }
            }
           });
   }
</script>    
<script type="text/javascript" src="__PUBLIC__/js/jQuery.autoIMG.min.js"></script>
<script type="text/javascript">
$(function(){
    $(".article-contents").autoIMG();
   
 
});
</script>
</body>
</html>